Full-Stack

Welcome Portfolio Projects Contact
↑ Go Back ↑

Disaster recovery

Disaster recovery

rear (Relax-and-Recover)

Download the latest release for your distribution:

https://relax-and-recover.org/download/

Install rear

$ sudo dpkg -i rear_X.X-X_xxxXX.deb

Get help

$ sudo rear

Configure settings

$ sudo nano /etc/rear/local.conf

Sample content:

# In what form the backups should be stored
OUTPUT=ISO

# Backup Filesystem backend (Should normally be NETFS)
BACKUP=NETFS

# Location where the backups should be stored
BACKUP_URL="file:///mnt/backup/rear-backups"

# Add a GRUB entry for the backup
GRUB_RESCUE=1

# Add a password to the backup GRUB entry
GRUB_RESCUE_PASSWORD="Celestia"

Create a backup

sudo rear -v mkbackup

Restore Process

Select "Relax-and-Recover" in GRUB menu

"Relax-and-Recover"

login with root (has no password)

root

Mount backup drive

$ mount /dev/sdb1 /mnt/backup

Restore from a backup

$ rear recover

Clonezilla

Install Clonezilla

sudo apt install clonezilla
sudo apt install bc

Run Clonezilla

sudo clonezilla